
public class RoutineWork implements Runnable{
	
	private int delay;
	
	public RoutineWork(int process, int delay) {
		this.delay = delay;
		new Thread(this, process + "").start();
	}

	@Override
	public void run() {
		while (true) {
			try {
				Thread.sleep(delay);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}

}
